﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Hangjing.Model;
using Hangjing.SQLServerDAL;
using Hangjing.Common;
using System.Text;

/// <summary>
/// 订单状态步骤 
/// </summary>
public partial class App_Androidremarktags_orderstep : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        StringBuilder shoplistjson = new StringBuilder();
        string orderid = HjNetHelper.GetPostParam("orderid");//订单编号


        //todo 根据商家编号，获取此城市的备注

        IList<OrderStepInfo> list = new OrderStep().GetOrderSteps(orderid);

        shoplistjson.Append("{\"page\":\"1\",\"total\":\"" + 1+ "\",\"datalist\":[");

        OrderStepInfo info = null;

        for (int i = 0; i < list.Count; i++)
        {
            info = new OrderStepInfo();

            info = list[i];

            shoplistjson.Append("{\"title\":\"" + info.title + "\",\"subtitle\":\"" + info.subtitle + "\",\"addtime\":\"" + info.addtime.ToString("MM月dd日 HH:mm") + "\"},");
        }

        shoplistjson.Append("]}");

        Response.Write(shoplistjson.ToString().Replace(",]}", "]}"));
        Response.End();

    }
}

